package org.example.myl.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController()
@RequestMapping("/vue-admin-template")
@CrossOrigin
public class LoginController {
    @RequestMapping(value = "/user/login", method = RequestMethod.POST)
    public String login(){
        log.info("login");
        return "success";
    }
}
